
class AlarmTypeNum {
    int alarmType;
    String alarmTypeName;
    int num;

    AlarmTypeNum({this.alarmType, this.alarmTypeName, this.num});

    factory AlarmTypeNum.fromJson(Map<String, dynamic> json) {
        return AlarmTypeNum(
            alarmType: json['alarmType'], 
            alarmTypeName: json['alarmTypeName'], 
            num: json['num'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['alarmType'] = this.alarmType;
        data['alarmTypeName'] = this.alarmTypeName;
        data['num'] = this.num;
        return data;
    }
}